package cloud.ben.smallscalepigfarmmanagementsystem.service;

import cloud.ben.smallscalepigfarmmanagementsystem.entity.User;
import cloud.ben.smallscalepigfarmmanagementsystem.utils.RespBean;

/**
 * @Author: Ben
 * @Date: 2022/3/1 17:45
 */
public interface IUserService {


    /**
     * 增加用户信息
     * @param user
     * @return RespBean
     */
    RespBean insertUser(User user);

    /**
     * 根据id删除用户信息
     * @param id
     * @return RespBean
     */
    RespBean deleteUser(Integer id);

    /**
     * 修改用户信息
     * @param user
     * @return RespBean
     */
    RespBean updateUser(User user);


    /**
     *分页查询用户信息
     * @param pageNumber
     * @param pageSize
     * @return RespBean
     */
    RespBean selectUserByPage(Integer pageNumber,Integer pageSize);
}
